[XEN] Use vcpu_info pointer in vcpu structure.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 31 Aug 2006 21:53:46 +0000 (22:53 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Thu, 31 Aug 2006 21:53:46 +0000 (22:53 +0100)
Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/time.c

index 7ead025e18889385058a14ea961e089ef59c9fa3..6191af3ef350888a229f538d3f75ca5c0ee094bd 100644 (file)
@@ -676,7 +676,7 @@ static inline void __update_vcpu_system_time(struct vcpu *v)
     struct vcpu_time_info *u;
 
     t = &this_cpu(cpu_time);
-    u = &v->domain->shared_info->vcpu_info[v->vcpu_id].time;
+    u = &v->vcpu_info->time;
 
     version_update_begin(&u->version);
 
@@ -690,7 +690,7 @@ static inline void __update_vcpu_system_time(struct vcpu *v)
 
 void update_vcpu_system_time(struct vcpu *v)
 {
-    if ( v->domain->shared_info->vcpu_info[v->vcpu_id].time.tsc_timestamp != 
+    if ( v->vcpu_info->time.tsc_timestamp !=
          this_cpu(cpu_time).local_tsc_stamp )
         __update_vcpu_system_time(v);
 }